package com.accp.demo.util;

import static org.mockito.Mockito.RETURNS_DEEP_STUBS;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TestUtil {
	
	public static String getNewNo(String lastNo){
		String newNo = "";
		String date = new SimpleDateFormat("yyyyMMdd").format(new Date());
		if(lastNo != null && lastNo.indexOf(date)>=0)
			newNo = Long.parseLong(lastNo)+1+"";
		else
			newNo = date+"001";
		return newNo;
	}
}
